﻿''' imshow.py 二维数组可视化为一张图像
'''
import numpy
from mayavi import mlab
 
s = numpy.random.random((10, 10))
img = mlab.imshow(s, colormap='gist_earth')
mlab.show()